﻿using PowerVSharp.Core.Utils;
using PowerVSharp.Standard.Interfaces;
using System;
using System.Runtime.InteropServices;

namespace PowerVSharp.Standard
{
    [Guid("0EFBFC22-3C05-4CD9-8903-1F769D13CF66")]
    [ComVisible(false)]
    public class String : IString
    {
        public string Format(string format, dynamic args)
        {
            var arr = (object[])DynamicHelper.DynamicToArray(args);
            return string.Format(format, arr);
        }

        public bool IsNullBlankOrSpace(string str)
        {
            return string.IsNullOrWhiteSpace(str);
        }

        public bool GetCallBack(dynamic obj)
        {
            throw new NotImplementedException();
        }

    }
}
